<%--
  Created by IntelliJ IDEA.
  User: 稚白不白
  Date: 2024/10/25
  Time: 12:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored ="false" %>
<%@ taglib prefix="c" uri="jakarta.tags.core" %>

<%@ include file="partials/_start.jsp" %>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>添加博客</h1>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-right">
                            <li class="breadcrumb-item"><a href="#">Home</a></li>
                            <li class="breadcrumb-item active">Blank Page</li>
                        </ol>
                    </div>
                </div>
            </div><!-- /.container-fluid -->
        </section>

        <!-- Main content -->
        <section class="content">

            <!-- Default box -->
            <div class="card card-primary">
                <div class="card-header">
                    <h3 class="card-title">填写博客信息</h3>
                </div>
                <!-- /.card-header -->
                <!-- form start -->
                <form method="post" action="admin-blog-add" enctype="multipart/form-data">
                    <div class="card-body">
                        <div class="form-group">
                            <label for="title">博客标题</label>
                            <input type="text" class="form-control" id="title" name="title" placeholder="请输入博客标题" required>
                        </div>
                        <div class="form-group">
                            <label for="content">博客内容</label>
                            <textarea class="form-control" name="content" id="content" cols="30" rows="10" required></textarea>
                        </div>
                        <div class="form-group">
                            <label for="cover">博客封面图（选填）</label>
                            <input type="file" class="d-block" id="cover" name="cover" accept="image/*">
                        </div>
                    </div>
                    <!-- /.card-body -->

                    <div class="card-footer">
                        <button type="submit" class="btn btn-primary">保存</button>
                    </div>
                </form>
            </div>
            <!-- /.card -->

        </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

<%@ include file="partials/_end.jsp" %>
